package com.vogue.supplymall.order.domain.dao.impl;

import com.vogue.supplymall.order.domain.dao.OrderStatusDao;
import com.vogue.supplymall.order.domain.mapper.OrderStatusMappper;
import com.vogue.supplymall.order.domain.model.OrderStatus;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;
import java.util.List;

/**
 * The type Order status dao.
 *
 * @aouthor: zhangliang
 * @date: Create in 2018-02-06
 */
@Repository("orderStatusDao")
public class OrderStatusDaoImpl extends BaseDaoImpl<OrderStatus, Long> implements OrderStatusDao {
    @Resource
    private OrderStatusMappper orderStatusMappper;

    @Override
    public List<OrderStatus> getByOrderId(Long orderId) {
        return orderStatusMappper.getByOrderId(orderId);
    }
}
